package view;

import model.Model;
import model.Product;

public class View {
	private Model model;

	public View(Model model) {
		this.model = model;
	}

	public Product viewProduct(int ID){
		return (model.getProducts().get(ID));
	}
	
	public void viewAllProducts() {
		for (Product product : model.getProducts()) {
			System.out.println("Nombre: " + product.getName());
			System.out.println("Precio: " + product.getPrice());
		}
	}
}